package lac.serviceuint.cfg.model;

import java.util.List;

import lac.model.core.cfg.BasicProperty;
import lac.model.core.cfg.CollectionProperty;
import lac.model.core.cfg.IdProperty;
import lac.model.core.cfg.ModelDescribe;
import lac.model.core.cfg.Type;

public class ServiceUnitModelDescribe extends ModelDescribe{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8005253193775147031L;

	public ServiceUnitModelDescribe() {
		this.setName("ServiceUnit");
		this.setTableName("pt_serviceunit");
		this.setIdProperty(new IdProperty());
		List<BasicProperty> basicProperties = this.getBasicProperties();
		basicProperties.add(new BasicProperty(Type.String, "name", "st_name", 50));
		basicProperties.add(new BasicProperty(Type.String, "describe", "st_describe", 100));
		
		List<CollectionProperty> collectionProperties = this.getCollectionProperties();
		collectionProperties.add(new CollectionProperty("methods", "st_serviceunit_id", "ServiceUnitMethod"));
		
	}
}
